package org.pattern.pipeline;

public class Client {
    public static void main(String[] args) {
        StandardPipeline pipeline = new StandardPipeline();
        pipeline.setTail(new TailValve());
        pipeline.addValve(new FirstValve());
        pipeline.addValve(new SecondValve());

        String s = "11, 22, 33";
        System.out.println("Input : " + s);

        pipeline.getHead().invoke(s);
    }
}
